<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Redirect to Index</title>
    <script>
        // 设置延迟时间，单位为毫秒。0 表示立即跳转。
        var delay = 0;
        
        // 页面加载完成后执行跳转
        window.onload = function() {
            setTimeout(function() {
                window.location.href = 'index.html'; // 跳转到 index.html
            }, delay);
        };
    </script>
</head>
<body>
    <h1>即将跳转到登录页...</h1>
    <p>此页面将在 <span id="timer">0</span> 秒后跳转。</p>
    <script>
        // 如果设置了延迟时间，可以在这里更新倒计时显示
        if (delay > 0) {
            var timerElement = document.getElementById('timer');
            var interval = setInterval(function() {
                delay--;
                timerElement.textContent = delay;
                if (delay <= 0) {
                    clearInterval(interval);
                    window.location.href = 'index.html';
                }
            }, 1000);
        }
    </script>
</body>
</html>
